package vip.finance.makemoney.apiSpider.result;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 实时行情
 *
 * @author 杨滨
 * @date 2023年02月03日
 */
@Data
public class StockDetailInfo implements Serializable {
    private String symbol;
    private MarketBean market;
    private QuoteBean quote;

    @Data
    public static class MarketBean implements Serializable {
        /**
         * region : CN
         * status : 已收盘
         * time_zone : Asia/Shanghai
         * time_zone_desc : null
         * delay_tag : 0
         */
        private String region;
        private String status;
    }

    @Data
    public static class QuoteBean implements Serializable {
        //代码
        private String symbol;
        //编码
        private String code;
        //SZ
        private String exchange;
        //名称
        private String name;
        //类型
        private int type;
        //当前价：80.32
        private BigDecimal current;
        //货币单位：CNY
        private String currency;
        //涨幅：0.17
        private BigDecimal percent;
        //股价波动：0.14
        private BigDecimal chg;
        //时间：1675407840000
        private Date timestamp;
        //时间：1675407840000
        private Date time;
        //100
        private int lot_size;
        //0.01
        private BigDecimal tick_size;
        //今开：80.19
        private BigDecimal open;
        //昨收：80.18
        private BigDecimal last_close;
        //最高价：80.5
        private BigDecimal high;
        //最低价：79.17
        private BigDecimal low;
        //均价：79.853
        private BigDecimal avg_price;
        //成交量：2317490
        private BigDecimal volume;
        //成交额：1.8505844858E8
        private BigDecimal amount;
        //换手：0.45
        private BigDecimal turnover_rate;
        //振幅：1.66
        private BigDecimal amplitude;
        //总市值：4.1194323611E10
        private BigDecimal market_capital;
        //流通值：4.0930307916E10
        private BigDecimal float_market_capital;
        //总股本：512877535
        private BigDecimal total_shares;
        //流通股：509590487
        private BigDecimal float_shares;
        //1513094400000
        private Date issue_date;
        //11.32
        private BigDecimal current_year_percent;
        //52周最高：118.9572
        private BigDecimal high52w;
        //52周最低：72
        private BigDecimal low52w;
        //涨停：88.2
        private BigDecimal limit_up;
        //跌停：72.16
        private BigDecimal limit_down;
        //量比：0.69
        private BigDecimal volume_ratio;
        //每股收益：3.19
        private BigDecimal eps;
        //市盈率(TTM)：25.182
        private BigDecimal pe_ttm;
        //市盈率(动)：26.143
        private BigDecimal pe_forecast;
        //市盈率(静)：27.822
        private BigDecimal pe_lyr;
        //每股净资产：22.99
        private BigDecimal navps;
        //市净率：3.494
        private BigDecimal pb;
        //股息：0.95
        private BigDecimal dividend;
        //股息率：1.183
        private BigDecimal dividend_yield;
        //1.48063700032E9
        private BigDecimal profit;
        //1.63585643425E9
        private BigDecimal profit_four;
        //1.575708031E9
        private BigDecimal profit_forecast;
        //null
        private Object pledge_ratio;
        //null
        private Object goodwill_in_net_assets;
        //盘前、盘后时间
        private Date timestamp_ext;
        //盘前、盘后价：108.48
        private BigDecimal current_ext;
        //盘前、盘后涨跌幅：-1.148168
        private BigDecimal percent_ext;
        //盘前、盘后涨跌金额：-1.26
        private BigDecimal chg_ext;
    }
}
